import request from "@/utils/request";

export function getScheduleData(params) {
    return request({
        url: "/schedule/search",
        method: "post",
        data: params
    });
}
export function addSchedule(params) {
    return request({
        url: "/schedule/insert",
        method: "post",
        data: params
    });
}

export function editSchedule(params) {
    return request({
        url: `/schedule/${params.id}`,
        method: "put",
        data: params
    });
}



export function deleteSchedule(params) {
    return request({
        url: `/schedule/delete`,
        method: "post",
        data: params
    });
}

export function getScheduleDetail(params) {
    return request({
        url: `/schedule/searchDetailList/${params.id}`,
        method: "get",
    });
}

export function submitSchedule(params) {
    return request({
        url: `/schedule/detail/insertgai`,
        method: "post",
        data: params
    });
}
export function expertDerive(params) {
    return request({
        url: `/schedule/expertDerive/${params.approvalId}`,
        method: "get",
        data: params,
        responseType: 'blob'
    });
}
